import JsonSeriType from "../base/JsonSeriType"
import JsonSeriable from "../base/JsonSeriable"
import FIELD_VALUE_TYPE from "../constants/commonConstants"

export default class FieldValue  extends JsonSeriable{
	#value;
	constructor(value){
		super();
		this.#value = value;
		super.seriType = new JsonSeriType(FIELD_VALUE_TYPE.base.FieldValue.code,FIELD_VALUE_TYPE.base.FieldValue.clsPage);
	}
	
	get value(){
		return this.#value;
	}
	
	set value(val){
		return this.#value = val;
	}
	
	genSeriObj(){
		
		let ret={
			"value": this.#value
		};
		return ret;
	
	}
	
	seriObj(obj){
		this.#value =  obj.value;
	}
	
}